<template>
  <div class=" tag tag-box">
    <div class="tag-content">
      <div class="item-ul">
        <div v-for="(item, index) in itemList" :key="index" class="item">
          <div class="title">{{ item.title }}</div>
          <div class="value">
            {{ item.value }}<span class="unit">{{ item.unit }}</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>
import { ref } from 'vue'
const itemList = ref([
  {
    title: '进水浊度',
    value: '4.4',
    unit: 'NTU'
  },
  {
    title: '进水电导率',
    value: '6.2',
    unit: 'μS/cm'
  },
  {
    title: '进水溶解氧',
    value: '7.2',
    unit: 'mg/L'
  },
  {
    title: '进水COD',
    value: '2.1',
    unit: 'mg/L'
  },
  {
    title: '进水氨氮',
    value: '0.5',
    unit: 'mg/L'
  },
  {
    title: '进水PH',
    value: '3',
    unit: ''
  }
])
</script>

<style lang="scss" scoped>
.tag-box {
  position: relative;
  padding: 10px 20px;
  min-height: 150px;
  border-image: url("@/components/BasicPanel/imgs/panel-source.svg") 10 fill / 10px;
  background-color: rgba(19, 141, 255, 0.1);
  backdrop-filter: blur(5px);
  border-image-repeat: stretch;
  pointer-events: none;
  margin-bottom: 40px;
  backface-visibility: hidden;
  transform: translate(calc(-50% - 40px),calc(-50% ));
  &:after {
    width: 100%;
    background-image: url('./bg.svg');
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right bottom;
    content: '';
    position: absolute;
    bottom: -40px;
    right:-50px;
  }

  .tag-content {
    width: 100%;
    height: 100%;
    z-index: 1;
    .item-ul {
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      .item {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: center;
        .title {
          font-size: 24px;
          color: #fff;
          margin-right: 20px;
        }
        .value {
          font-size: 32px;
          color: #fff;
          .unit {
            font-size: 32px;
            color: #b4d4ff;
          }
        }
      }
    }
  }
}
</style>
